package com.game.primitive.context.enums;

import com.game.config.primitive.PrimitiveConfig;

/**
 * Created by Administrator on 2016/7/21.
 */
public enum BattleFieldStage {
	READE(1), FIGHT(2), END(3);
	private int id;

	BattleFieldStage(int id) {
		this.id = id;
	}

	public int getSecond() {
		int second = 0;
		if (this == READE) {
			second = PrimitiveConfig.getInstance().getReadyTime();
		} else if (this == FIGHT) {
			second = PrimitiveConfig.getInstance().getFightTime();
		} else if (this == END) {
			second = PrimitiveConfig.getInstance().getEndTime();
		}
		return second;
	}
}
